package ${repositoryPackagePath};

import ${searchPoPackagePath}.${entityName?cap_first}SearchPo;
import ${poPackagePath}.${entityName?cap_first}Po;
import ${mapperPackagePath}.${entityName?cap_first}Mapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


@Repository
public class ${entityName?cap_first}Repository {

    @Autowired
    private ${entityName?cap_first}Mapper ${entityName?uncap_first}Mapper;


    public List<${entityName?cap_first}Po> list(${entityName?cap_first}SearchPo searchPo) {
        return ${entityName?uncap_first}Mapper.list(searchPo);
    }

    public void insert(${entityName?cap_first}Po ${entityName?uncap_first}Po) {
        ${entityName?uncap_first}Mapper.insert(${entityName?uncap_first}Po);
    }

    public void insertBatch(List<${entityName?cap_first}Po> ${entityName?uncap_first}PoList) {
        ${entityName?uncap_first}Mapper.insertBatch(${entityName?uncap_first}PoList);
    }

    public void update(${entityName?cap_first}Po ${entityName?uncap_first}Po) {
        ${entityName?uncap_first}Mapper.update(${entityName?uncap_first}Po);
    }

    public void deleteById(Long id) {
        ${entityName?uncap_first}Mapper.deleteById(id);
    }

    public void deleteByIdList(List<Long> idList) {
        ${entityName?uncap_first}Mapper.deleteByIdList(idList);
    }

    public ${entityName?cap_first}Po selectById(Long id) {
        return ${entityName?uncap_first}Mapper.selectById(id);
    }

    public List<${entityName?cap_first}Po> selectByIdList(List<Long> list) {
        return ${entityName?uncap_first}Mapper.selectByIdList(list);
    }
}
